package com.yjs.app.trade.service.service.sys.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjs.app.trade.core.base.mybatis.dbutil.DynamicSwitchDataSource;
import com.yjs.app.trade.service.mapper.sys.InvoiceInfoCachMapper;
import com.yjs.app.trade.service.service.sys.InvoiceInfoCacheService;

@Service("invoiceInfoCacheService")
@DynamicSwitchDataSource(dataSource = "app")
public class InvoiceInfoCacheServiceImpl implements InvoiceInfoCacheService {

	@Autowired
	InvoiceInfoCachMapper infoCachMapper;

	@Override
	public Map<String, Object> getInvoiceInfoCach(Map<String, Object> map) {
		Map<String, Object> invoiceInfoCach = infoCachMapper.getInvoiceInfoCach(map);
		return invoiceInfoCach;
	}

	@Override
	public int saveInvoiceCache(Map<String, Object> map) {
		int saveInvoiceCache = infoCachMapper.saveInvoiceCache(map);
		return saveInvoiceCache;
	}

	

}
